package com.mtsmda.chapter1.accessModifier;

public class PublicClass {
	
	private Integer age = 23;
	String gender = "M";
	protected String firstName = "Dmitrii";
	public String lastName = "Mynzat";
	
	@Override
	public String toString() {
		return new StringBuffer().append("Access modifier\n").append("private - " + age + "\ndefault - " + gender + "\n"
				+ "protected - " + firstName + "\npublic - " + lastName).toString();
	}
	
}